package com.wynn.service;

import com.wynn.pojo.Order;
import com.wynn.pojo.OrderException;
import com.wynn.pojo.Result;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface OrderService {

    List<Order> selectAll();

    Result statisticExc();

    Result statisticOrder();

    Result statisticDone();

    Result getChartData2();

    List<Order> searchAll(String deadLine, String company, Integer product) throws ParseException;

    void deleteOrder(int id);

    void addOrder(Order order);

    void editOrder(Order order);

    boolean addOrderException(Map<String,String> orderException);

    void submit(Order order);

    List<OrderException> searchException(Map<String,String> map) throws ParseException;

    void editException(OrderException orderException);

    void recoverException(int id,int orderId);


}
